fix spec?

Andrew Cantino 11 years ago
parent
commit
a08cb6888e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spec/models/event_spec.rb

+ 1 - 1
spec/models/event_spec.rb

@@ -13,7 +13,7 @@ describe Event do
13 13
       Event.last.agent.should == events(:bob_website_agent_event).agent
14 14
       Event.last.lat.should == 2
15 15
       Event.last.lng.should == 3
16
-      Event.last.created_at.should be_within(1).of(Time.now)
16
+      Event.last.created_at.to_.should be_within(2).of(Time.now.to_i)
17 17
     end
18 18
   end
19 19